package _spring_test._constructor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2020/6/22
 * @Description:
 */
public class ConstructorTest {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("constructor/application-constructor-arg.xml");
        Student student = (Student) ac.getBean("student");
        System.out.println(student.getName());
    }
}
